home *** CD-ROM | disk | FTP | other *** search
-
- regc(0, "COMBINED_XFORM")
- regc(4, "MODELVIEW_XFORM")
- regc(10, "FOG_PARAMS")
-
- regc(20, "TEXTURE0_XFORM")
- regc(24, "TEXTURE1_XFORM")
- regc(28, "TEXTURE2_XFORM")
- regc(32, "TEXTURE3_XFORM")
-
- vshader("
-
- #define point v0
-
- #include <fog.inc>
-
- vs_1_1
-
- dcl_position point
-
- ; output position (must the calculated in the same way in all passes)
- m4x4 r0, point, c0
- mov oPos, r0
-
- ; pos in camera space
- m4x4 r0, point, c4
-
- ; output texcoords
- m4x4 oT0, r0, c20
- m4x4 oT1, r0, c24
-
- dp4 oT2.x, r0, c28
- dp4 oT2.y, r0, c29
-
- dp4 oT3.x, r0, c32
- dp4 oT3.y, r0, c33
-
- ; calc fog
- dp4 r0.x, point, c2
- FOG(r0.x, c10, r10)
- ")
-
-